<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<title>模块中心</title>
<head th:replace="system/inc/incHead :: incHead"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content no-margins no-padding">
    <div class="row no-padding no-margins">
        <div class="col-sm-3 no-margins no-padding">
            <div class="ibox no-margins">
                <div th:if="${not #lists.isEmpty(systems)}" class="ibox-content" layoutH="38">
                    <div class="file-manager">
                        <h5>系统信息</h5>
                        <div class="hr-line-dashed"></div>
                        <ul class="folder-list" style="padding: 0">
                            <li class="p-xxs" th:each="item:${systems}">
                                <a href="javascript:;" th:if="${sysSystem.id == item.id}"><i class="fa fa-cube"></i>
                                    <selection class="text-info">[[${item.systemSort}]]:[[${item.systemName}]]【[[${item.systemCode}]]】
                                    </selection>
                                </a>
                                <a th:href="@{/sys/model(systemId=${item.id})}" th:if="${sysSystem.id != item.id}"><i class="fa fa-cube"></i>
                                    <selection class="">[[${item.systemSort}]]:[[${item.systemName}]]【[[${item.systemCode}]]】</selection>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-9 no-margins">
            <div class="row no-margins no-padding">
                <div class="col-sm-12 no-margins no-padding">
                    <div class="ibox no-margins">
                        <div class="ibox-title no-borders">
                            <button class="btn btn-sm btn-info" type="button" th:ljUrl="@{/sys/model/add(systemId=${sysSystem.id})}"
                                    th:title="@{'添加系统模块:'+${sysSystem.id}}"
                                    target="ljOpenCon">
                                <i class="fa fa-paste">添加模块</i>
                            </button>
                            <button class="btn btn-white btn-bitbucket btn-sm pull-right btnPageRefresh" type="button"><i
                                    class="fa fa-refresh">页面刷新</i></button>
                        </div>
                        <div class="ibox-content" style="padding:10px;" layoutH="65">
                            <table class="table table-striped table-bordered table-hover table-responsive lj-table-nowrap">
                                <thead>
                                <tr>
                                    <th style="min-width:60px;" class="text-center">模块序号</th>
                                    <th style="min-width:100px;">模块编号</th>
                                    <th style="min-width:100px;">模块名称</th>
                                    <th style="min-width:100px;">模块样式</th>
                                    <th style="min-width:100px;">模块备注</th>
                                    <th style="min-width:140px;">添加时间</th>
                                    <th style="min-width:60px;">数据状态</th>
                                    <th style="min-width:60px;">操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr class="warning" th:each="item:${sysModels}">
                                    <td style="min-width:60px;" class="text-center">[[${item.id}]]</td>
                                    <td style="min-width:100px;">[[${item.modelCode}]]</td>
                                    <td style="min-width:100px;">[[${item.modelSort}]]:[[${item.modelName}]]</td>
                                    <td style="min-width:100px;">[[${item.modelStyle}]]</td>
                                    <td style="min-width:100px;">[[${item.modelDesc}]]</td>
                                    <td style="min-width:140px;">[[${@lj.date(item.createTime)}]]</td>
                                    <td style="min-width:60px;">
                                        <th:block th:if="${@lj.limit('SysModelStatus')>0}">
                                            <div class="btn btn-xs btn-primary" th:if="${item.dataStatus == 0}"
                                                 th:ljUrl="@{/sys/model/status(id=${item.id},status=1)}"
                                                 title="停用信息" target="ljAjaxTodo">
                                                <i class="fa fa-play">已启用</i>
                                            </div>
                                            <div class="btn btn-xs btn-danger" th:if="${item.dataStatus == 1}"
                                                 th:ljUrl="@{/sys/model/status(id=${item.id},status=0)}"
                                                 title="启用信息" target="ljAjaxTodo">
                                                <i class="fa fa-stop">已停用</i>
                                            </div>
                                            <div class="btn btn-xs btn-danger" th:if="${item.dataStatus == 2}"
                                                 th:ljUrl="@{/sys/model/status(id=${item.id},status=1)}"
                                                 title="启用信息" target="ljAjaxTodo">
                                                <i class="fa fa-stop">已保留</i>
                                            </div>
                                        </th:block>
                                        <th:block th:if="${@lj.limit('SysModelStatus')<=0}">
                                            [[${@lj.codeStyle("DataStatus",item.dataStatus)}]]<br/>
                                        </th:block>
                                    </td>
                                    <td style="min-width:60px;" class="p-xxs">
                                        <button class="btn btn-xs btn-success" th:ljUrl="@{/sys/model/edit(id=${item.id})}"
                                                th:title="@{'编辑模块:'+${item.id}}"
                                                target="ljOpenCon">
                                            <i class="fa fa-paste">编辑模块</i>
                                        </button>
                                    </td>
                                </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:replace="system/inc/incBottom :: incBottom"></div>
<script>
</script>
</body>
</html>
